from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('', 
	url(r'^exams/', include('exams.urls')),
	url(r'^admin/', include(admin.site.urls)),
        (r'^accounts/login/$','django.contrib.auth.views.login'),
        (r'^accounts/logout$','django.contrib.auth.views.logout'),  
        url(r'^$','views.home'),
        (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),   
)
